require 'statsample'

class TestController < ApplicationController
  def test_stat
    # Create a Vector
    a=(1..100).collect { rand(100)}.to_scale

    # Retrieve vector mean and standard deviation
    a.mean
    a.sd
    render :text => "Mean : #{a.mean} || SD. : #{a.sd}"
  end

  def test_normdist
    #render :text => Distribution::Normal.cdf(0.5)
    render :text => Distribution::Normal.p_value(0.1)
  end

  def test_get_result

  end

  def test_facebook
    render :action=>"test_facebook"
  end
end
